package ATBMS.modles;
import java.util.Date;

/**
 * Ticket Modle
 */
public class Ticket {

    private int id;
    private String fcode;
    private int uid;
    private Date booktime;
    private String utel;

    /**
     * Create a Ticket Object
     * @param fcode
     * @param uid
     * @param booktime
     * @param utel
     */
    public Ticket(String fcode, int uid, Date booktime, String utel) {
        this.fcode = fcode;
        this.uid = uid;
        this.booktime = booktime;
        this.utel = utel;
    }

    /**
     * Create a Ticket Object
     */
    public Ticket() {
    }

    /**
     * Create a Ticket Object
     * @param id
     * @param fcode
     * @param uid
     * @param booktime
     * @param utel
     */
    public Ticket(int id, String fcode, int uid, Date booktime, String utel) {
        this.id = id;
        this.fcode = fcode;
        this.uid = uid;
        this.booktime = booktime;
        this.utel = utel;
    }

    /**
     * Get Booktime
     * @return
     */
    public Date getBooktime() {
        return booktime;
    }

    /**
     * Set Booktime
     * @param booktime
     */
    public void setBooktime(Date booktime) {
        this.booktime = booktime;
    }

    /**
     * Get Flight Code
     * @return
     */
    public String getFcode() {
        return fcode;
    }

    /**
     * Set Flight COde
     * @param fcode
     */
    public void setFcode(String fcode) {
        this.fcode = fcode;
    }

    /**
     * Get Uid
     * @return
     */
    public int getUid() {
        return uid;
    }

    /**
     * Set Uid
     * @param uid
     */
    public void setUid(int uid) {
        this.uid = uid;
    }

    /**
     * Get User Telephone
     * @return
     */
    public String getUtel() {
        return utel;
    }

    /**
     * Set User Telephone
     * @param utel
     */
    public void setUtel(String utel) {
        this.utel = utel;
    }

    /**
     * Get Ticket ID
     * @return
     */
    public int getId() {
        return id;
    }

    /**
     * Set Ticket ID
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }
}
